package com.nervenets.template.enumeration;

import com.google.common.collect.Lists;
import com.nervenets.general.entity.Selection;
import com.nervenets.general.enumeration.Enums;

import java.util.List;

public enum Gender implements Enums {
    male("男"),
    female("女");

    private final String text;

    Gender(String text) {
        this.text = text;
    }

    public static List<Selection> selections() {
        return Lists.newArrayList(new Selection(male), new Selection(female));
    }

    @Override
    public String getText() {
        return text;
    }

    @Override
    public String getValue() {
        return this.name();
    }
}
